package com.etone.autotesting.conditions;

import java.util.Map;

import com.etone.autotesting.conditions.base.CommonCondition;
import com.etone.ejb.core.util.JsonUtil;

/**
 * 单传条件
 * 
 * @author chenzhichao
 * 
 */
public class ValueConditon extends CommonCondition {

	public String getJsonCondition() {
		if (ConditionKey == "")
			return "";
		Object jsonValue = getNextValue();
		String json = jsonValue.toString();// JsonUtil.toJson((Map)jsonValue);
		return ConditionKey + ":" + json;
	}

	@Override
	public double getJoinLength() {
		length = conditionList.size();
		return length;
	}
}
